package com.example.barcodeapp.ui.own.fragment;

import android.widget.Toast;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.example.barcodeapp.R;
import com.example.barcodeapp.adapter.KeChengXiangQingAdapter;
import com.example.barcodeapp.adapter.gatheradapter.AdapterMianFei;
import com.example.barcodeapp.adapter.ownadapter.AdapterGongKaiKe;
import com.example.barcodeapp.base.BaseFragment;
import com.example.barcodeapp.interfaces.IBasePersenter;

import butterknife.BindView;

public class KeChengMuLuFragment extends BaseFragment {


    @BindView(R.id.kechengxiangqing_rv)
    RecyclerView kechengxiangqingRv;

    @Override
    protected int getLayout() {
        return R.layout.fragment_ke_cheng_mu_lu;
    }

    @Override
    protected void initView() {

        KeChengXiangQingAdapter adapterMianFei = new KeChengXiangQingAdapter(getActivity());
        adapterMianFei.setClick(new KeChengXiangQingAdapter.IClick() {
            @Override
            public void click(int pos) {
                Toast.makeText(getActivity(), pos+"", Toast.LENGTH_SHORT).show();
            }
        });
        LinearLayoutManager manager3 = new LinearLayoutManager(context);
        kechengxiangqingRv.setLayoutManager(manager3);
        kechengxiangqingRv.setAdapter(adapterMianFei);
    }

    @Override
    protected IBasePersenter initPersenter() {
        return null;
    }

    @Override
    protected void initData() {

    }
}